package common;
import java.io.Serializable;


/**
 * part of common classes of server and client
 * this abstract class holds the command
 * the server sends to user each command
 * instance perform execute according to 
 * ServerInterface API 
 * 
 * @author Orit
 *
 */
public abstract class CommandExecutor implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//holds file action instance
	transient ServerInterface serverInterface = null;
	
	
	/**
	 * execute command
	 */
	public abstract CommandAnswer execute() throws Exception;
	
	public ServerInterface getServerInterface() {
		return serverInterface;
	}
	public void setServerInterface(ServerInterface serverInterface) {
		this.serverInterface = serverInterface;
	}
}
